package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.LsdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface LsdService extends BaseService<LsdBean> {

	LsdBean getLsdBeanById(String id) throws Exception;
	
	void removeLsdBeanById(String id) throws Exception;
	
	void removeLsdBeanByIds(String ids) throws Exception;
	
	LsdBean saveLsdBean(LsdBean crm) throws Exception;
	
	LsdBean updateLsdBean(LsdBean crm) throws Exception;
	
	Page<LsdBean>  findLsdBeanByCond(LsdBean bean,
			Page<LsdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveLsdBeanExt(String sql) throws Exception;

	String findLsdBeanExtCreate(String tableName) throws Exception;

	String findLsdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findLsdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasLsdBeanExtData(String tableName, String id)
			throws Exception;
}